<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script>
$(function(){
	$("#year").datepicker({ dateFormat: "yy" });
  	$("#month").datepicker({ dateFormat: "mm" });
	$( "#from" ).datepicker({
        changeMonth: true,
        numberOfMonths: 2,
        dateFormat: "yymmdd",
        onClose: function( selectedDate ) {
            $( "#to" ).datepicker( "option", "minDate", selectedDate );
        }
    });
    $( "#to" ).datepicker({
        changeMonth: true,
        numberOfMonths: 2,
        dateFormat: "yymmdd",
        onClose: function( selectedDate ) {
            $( "#from" ).datepicker( "option", "maxDate", selectedDate );
        }
    });
});
</script>
<div id="addWeek">
	<form name="addWeek" action="admin.do">
		<input type="hidden" name="mode" value="addWeek">
		<p>
			<label for="year">Year</label>
			<input type="text" id="year" name="year" />
			<label for="month">Month</label>
			<input type="text" id="month" name="month" />
			<label for="week">Week</label>
			<select id="week" name="week">
				<option value="1">1주차</option>
				<option value="2">2주차</option>
				<option value="3">3주차</option>
				<option value="4">4주차</option>
				<option value="5">5주차</option>
			</select>
		</p>
		<p>
			<label for="from">From</label>
			<input type="text" id="from" name="s_day" />
			<label for="to">to</label>
			<input type="text" id="to" name="l_day" />
			<input type="submit" id="update" value="Update">
		</p>
		
	</form>
</div>